<?php
    if($query->num_rows()>0){
        $admin_data = $query->row();
        $titre = $admin_data->name;
        $id= $admin_data->id;
    }
?>
<div id="wrapper-content1"> 
<div class="bajouter" align="center">Modifier une image</div>
<div style="margin:10px 0px 10px 0px;">
<form   method="POST" id="formcheck" action="<?php echo site_url('SB_admin/update_image').'/'.$id?>" enctype="multipart/form-data">
<table width="100%" id="formactu" cellpadding="10px" cellspacing="0">
<tr>
<td><span>Titre</span><input type="text" name="titre" readonly="readonly" value="<?php echo $titre?>" ><br/></td></tr>
<tr><td><span>Image </span><input  type="file"  name="userfile" /></td><td><?php echo form_error('userfile')?></td></tr>
<tr><td><input type="submit" name="submit"  border="0" src="<?php echo base_url();?>assets/admin/images/ajouter.png"  value="Submit" alt="Submit"></td></tr>
</table>
</form>
</div>
</div>  

